Page({
    data: {
        totalcount: 3
    },
    addCount() {
        let num = this.data.totalcount
        num++
        if (num > 5) {
            wx.showToast({
                icon: 'none',
                title: '没有更多商品了～',
            })
            return
        }
        this.setData({
            totalcount: num
        })
    },
    delCount() {
        let num = this.data.totalcount
        num--
        if (num < 1) {
            wx.showToast({
                icon: 'none',
                title: '不能再减了',
            })
            return
        }
        this.setData({
            totalcount: num
        })
    },
    bindViewTap: function(e) {
        console.log(e)
        e.mark.myMark === "AAAAA" // true
        e.mark.anotherMark === "BBBBB" // true
      }
})